<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@include file="/WEB-INF/jsp/include/tags.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>item - write</title>
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<script type="text/javascript">
	<!--
		function goList() {
			var f = document.itemCriteriaForm;
			f.submit();
		}
	//-->
	</script>
</head>
<body>

	<p>
		<a href="/">home</a>
	</p>

	<h1>Item - write</h1>

	<form:form commandName="itemCriteria" id="itemCriteriaForm"
		name="itemCriteriaForm" action="/item.do" method="get">
		<input type="hidden" name="mode" />
		<form:hidden path="itemid" />
		<form:hidden path="paging.currentPage" />
	</form:form>

	<form:form commandName="item" name="itemForm" action="/itemWrite.do">
		<input type="hidden" name="mode" value="write" />
		<table width="800">
			<colgroup width="800">
				<col width="100" />
				<col width="*" />
			</colgroup>
			<tr>
				<th>itemid</th>
				<td><form:input path="itemid" /> <form:errors path="itemid"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>productid</th>
				<td><form:input path="productid" /> <form:errors
						path="productid" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>listprice</th>
				<td><form:input path="listprice" /> <form:errors
						path="listprice" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>unitcost</th>
				<td><form:input path="unitcost" /> <form:errors
						path="unitcost" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>supplier</th>
				<td><form:input path="supplier" /> <form:errors
						path="supplier" cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>status</th>
				<td><form:input path="status" /> <form:errors path="status"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>attr1</th>
				<td><form:input path="attr1" /> <form:errors path="attr1"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>attr2</th>
				<td><form:input path="attr2" /> <form:errors path="attr2"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>attr3</th>
				<td><form:input path="attr3" /> <form:errors path="attr3"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>attr4</th>
				<td><form:input path="attr4" /> <form:errors path="attr4"
						cssClass="errorMessage" /></td>
			</tr>
			<tr>
				<th>attr5</th>
				<td><form:input path="attr5" /> <form:errors path="attr5"
						cssClass="errorMessage" /></td>
			</tr>
		</table>
		<input type="submit" value="write" />
	</form:form>

	<a href="javascript:goList();">list</a>

</body>
</html>
